var ShapeCircle = function(x, y, r)
{
	this.init();
	this.x = x;
	this.y = y;
	this.radius = r;
	this.ShapeGraphicType = Shape.Circle;
	this.type = Graphic.Shape;
}

// Inherit from graphical object
ShapeCircle.prototype = new ShapeGraphic();

// Sets
ShapeCircle.prototype.setWidth = function(w)
{
	this.width = w;
}

ShapeCircle.prototype.setHeight = function(h)
{
	this.height = h;
}

ShapeCircle.prototype.setColor = function(c)
{
	this.color = c;
}

ShapeCircle.prototype.init = function()
{
	GraphicalObject.prototype.init.call(this); // Call super method
	this.radius = 8;
}

// Gets
ShapeCircle.prototype.getWidth = function()
{
	return this.width;
}

ShapeCircle.prototype.getHeight = function()
{
	return this.height;
}

ShapeCircle.prototype.getColor = function()
{
	return this.color;
}

// Draw function
ShapeCircle.prototype.draw = function(context)
{
	ShapeGraphic.prototype.draw.call(this, context);
}

ShapeCircle.prototype.getBounds = function()
{
	return {
		x: this.x,
		y: this.y,
		radius: this.radius
	};
}